package com.pureut.order.mapper;

import com.pureut.order.domain.PublicMaterial;
import com.pureut.order.vo.MaterialMqVo;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 公共物料mapper
 * @author jack
 */
@Mapper
public interface PublicMaterialMapper extends BaseMapperPlus<PublicMaterialMapper, PublicMaterial, PublicMaterial> {

    /**
     * 通过编码获取公共物料信息
     */
    PublicMaterial getPublicGoodsByCode(String materialCode);

    /**
     * 删除公共物料信息
     */
    int deleteData(@Param("idList") List<String> idList);

    /**
     * 修改公共物料信息
     */
    int updateData(MaterialMqVo materialMqVo);
}

